/****
 * Copyright (C) 2006 dNux Team
 *                                                            ****
 * This program is free software; you can redistribute it and/or *
 * modify under the terms of the GNU General Public License as   *
 * published by the Free Software Foundation;                    *
 * either version 2 of the License.                              *
 *                                                               *
 * This program is distributed in the hope that it will be       *
 * useful, but WITHOUT ANY WARRANTY; without even the implied    *
 * warranty of without even the implied waranty of               *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.          *
 * See the GNU General Public License for more details.          *
 *                                                               *
 * You should have received a copy of the                        *
 * GNU General Public License                                    *
 * along with this program; if not, write to the                 *
 * Free Software Foundation, Inc.,                               *
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. *
 *                                                               *
 ****                                                         ****/

#ifndef __DCHECK_H_H__
#define __DCHECK_H_H__

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef enum {
  D_CHECK_OK,
  D_CHECK_ERROR,
  D_CHECK_WARNING,
} d_check_result_t;

typedef struct {
  int total;
  int ok;
  int error;
  int warning;
} d_check_t;

d_check_t *d_check_new();
void       d_check_free(d_check_t **check);
void       d_check_add(d_check_t *check, d_check_result_t result, char *log);
void       d_check_result(d_check_t *check);


#endif /* __DCHECK_H_H__ */
